package com.example.aigc_education.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.aigc_education.domain.Answer;
import com.example.aigc_education.domain.po.SelectAnswerByAdminPO;
import com.example.aigc_education.domain.po.SelectAnswerByQuestionPO;
import com.example.aigc_education.domain.po.SelectAnswerByUserPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AnswerMapper extends BaseMapper<Answer> {

    List<SelectAnswerByUserPO> selectAnswerAndQuestionByUser(@Param("userId") Long userId, @Param("examId") Long examId);
    List<SelectAnswerByQuestionPO> selectAnswerByTeacher(@Param("examId") Long examId,@Param("questionId") Long questionId);
    List<SelectAnswerByAdminPO> selectAllAnswer();
}
